package com.example.common.result;

import java.io.Serializable;

/**
 * @author benjamin_5
 * @Description 返回结果码
 * @date 2023/2/22
 */
public enum ResultCode implements Serializable {

    /**
     * 结果码
     */
    SUCCESS(200, "操作成功"),
    FAIL(400, "操作失败"),
    UN_AUTH(429, "token无效"),
    SERVER_ERROR(500, "服务器异常"),


    ;

    final int code;
    final String message;


    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
